package com.ruoyi.voucher.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证管理对象 voucher
 * 
 * @author hdd
 * @date 2025-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("voucher")
public class VoucherManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 凭证ID */
    @TableId(type = IdType.AUTO)
    private Long voucherId;

    /** 凭证字号 */
    @ExcelProperty(value = "凭证字号",index = 0)
    private String voucherNo;

    /** 开票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(value = "yyyy-MM-dd")
    @ExcelProperty(value = "开票日期",index = 1)
    private Date voucherDate;

    /** 账期 */
    @ExcelProperty(value = "账期",index = 2)
    private String accountPeriod;

    /** 附单据数量 */
    @ExcelProperty(value = "附单据数量",index = 3)
    private Long attachmentCount;

    /** 合计金额 */
    @ExcelProperty(value = "合计金额",index = 4)
    private BigDecimal totalAmount;

    /** 剩余可冲销金额 */
    @ExcelProperty(value = "剩余可冲销金额",index = 5)
    private BigDecimal remainingAmount;

    /** 审核人ID */
    private Long auditorId;

    /** 审核状态 */
    private Integer auditStatus;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "审核时间",index = 6)
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date auditTime;

    /** 作废状态 */
    @Excel(name = "作废状态")
    private Integer isVoid;

    /** 作废时间 */
    private Date voidTime;

    /** 红冲时间 */
    private Date reversalTime;

    /** 账套ID */
    private Long accountId;

    /** 凭证字ID */
    @Excel(name = "凭证字ID")
    private Long wordId;


    /** 逻辑删除 */
    private Integer isDeleted;

    /** 版本号 */
    private Long version;


}
